:host {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quark-pull-refresh {
  width: 100%;
  background: var(--pull-refresh-bg-light, var(--pull-refresh-bg, transparent));
}

.quark-pull-refresh-container {
  position: relative;
  transition-property: transform;
  background: var(--pull-refresh-container-bg, #fff);
}

.quark-pull-refresh-head {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--pull-refresh-head-height);
  overflow: hidden;
  color: var(--pull-refresh-head-text-color);
  font-size: var(--pull-refresh-head-font-size);
  line-height: var(--pull-refresh-head-height);
  text-align: center;
  transform: translateY(-100%);
}

.quark-pull-refresh-text {
  font-size: 14px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 19px;
  box-sizing: border-box;
}

:host([dark]) .quark-pull-refresh {
  background: var(--pull-refresh-bg-dark, var(--pull-refresh-bg, quark-primaryColor));
}

:host([dark]) .quark-pull-refresh-text {
  --loading-text-color: #fff;
  color: #fff;
}

.quark-dark-loading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.quark-dark-loading img {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  animation: rotate 1.4s linear infinite;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}